using MessageQueues.Abstractions;
using Microsoft.Extensions.DependencyInjection;

namespace MessageQueues.RabbitMQ
{
    public static class Extensions
    {
        /// <summary>
        /// 添加 RabbitMQ 相关服务
        /// </summary>
        /// <param name="services"></param>
        public static void AddRabbitMQ(this IServiceCollection services)
        {
            services.AddScoped<IMqContext, Context>();
        }
    }
}